import Vue from "vue"
import { mapState, mapMutations } from 'vuex'
import { WOW } from "wowjs"
import { reg } from './validate' //正则
import { baseURL } from '../api/request'
import { sourceURL } from '../api/request'

Vue.mixin({
    data() {
        return {
            reg,
            baseURL,
            sourceURL
        }
    },
    computed: {
        ...mapState([
            'device', //机型
            'userType',
            'regShow',
            'userInfo',
            'toPath',
            'fromPath',
            'acType'
        ]),
    },
    methods: {
        ...mapMutations([
            'getDevice', //机型
            'getUserType',
            'changeRegShow',
            'changeUserInfo',
            'changeToPath',
            'changeFromPath',
            'changeActype'
        ]),
    },
})